﻿@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="Content">

@ViewBag.test 

<h2>Listado de Restaurante</h2>


<table>
<tr>
    <td colspan="2"><a href="@Url.Action("List", "Reserva", new { id = ViewBag.idCliente })" >Ver Reservas</a></td>
</tr>
<!--
<tr>
    <td>Buscar Por Nombre</td>
    <td><input type="text" /><input type="button" value="Buscar"/></td>
</tr>
-->
</table>

<br /><br />

<table class="tblListado">
<tr>
    <th>Nombre</th>
    <th>Dirección</th>
    <th>Distrito</th>
    <th>Categoria</th>    
    <th>Reservar</th>
</tr>
<tr>
    <td>Señor Limon</td>
    <td>Av. La Mar 10023</td>
    <td>San Miguel</td>
    <td>Pescados y Mariscos</td>
    <td align="center"><a href="@Url.Action("Register", "Reserva", new { id = "1"})" >Reservar</a></td>
</tr>
<tr>
    <td>Punto Azul</td>
    <td>Av. Conquistadores 1002</td>
    <td>Pueblo Libre</td>
    <td>Pescados y Mariscos</td>
    <td align="center"><a href="@Url.Action("Register", "Reserva", new { id = "2"})" >Reservar</a></td>
</tr>
<tr>
    <td>Rockys</td>
    <td>Av. Conquistadores 1002</td>
    <td>Surco</td>
    <td>Polleria</td>
    <td align="center"><a href="@Url.Action("Register", "Reserva", new { id = "3" })" >Reservar</a></td>
</tr>
</table>

<br />

<a href="@Url.Action("Index", "Home")" >Regresar</a>

</div>